import Vue from 'vue'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-default/index.css'
import axios from 'api/http'
import App from './App'
import router from './router'

import JsEncrypt from 'jsencrypt/bin/jsencrypt'
Vue.prototype.$jsEncrypt = JsEncrypt

import VueLazyload from 'vue-lazyload'

Vue.use(VueLazyload)

Vue.config.productionTip = false

import filters from './filters'
Object.keys(filters).forEach((key) => { Vue.filter(key, filters[key][key]) })

Vue.use(ElementUI)
Vue.prototype.$http = axios

import store from './store'

import 'common/sass/index.scss'

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
